/*loccheck.c -- 查看变量存储在何处*/

#include "stdio.h"

int sum(int,int); /*函数原型*/

void main(){  
    int i = 10;  
    int** p = sum(2,3);
    printf("i=%d,地址=%p\n",p,&p);
    printf("i=%d,地址=%p\n",i,i = &p);
}

int sum(int a,int b){
    return a + b;
}